var mongoose = require('../common/db');

var recommend = new mongoose.Schema({
    recommendImg: String,
    recommendSrc: String,
    recommendTitle: String
})
recommend.statics.findByIndexId = function (m_id) {
    return this.find({ findByIndexId: m_id }).exec();
};
recommend.statics.findAll = function () {
    return this.find({}).exec();
};

var recommendModel = mongoose.model('recommend', recommend);
module.exports = recommendModel